#pragma once
// #include "../libwas/_inc.h"

#include "../libutil/cCursor.h"
// #include "../libutil/cDesc.h"
#include "../libutil/cLabel.h"
#include "../libutil/cMouse.h"
#include "../libutil/cNode.h"
// #include "../libutil/cReader.h"
#include "../libutil/cSp.h"
#include "../libutil/cSprite.h"

#define ccc_u2s(_uid_)toString("%08X", (_uid_))
#define ccc_s2u(_str_)std::strtoul(_str_.c_str(), nullptr, 16)
#define ccc_u2was(_uid_)toString("%08X.was", (_uid_))

#define ccc_md(_path_)system(("md " + cc::replace((_path_), "/", "\\")).c_str())
#define ccc_move(_name_, _path_move_)system(("move " + cc::replace(((_name_) + " " + (_path_move_)), "/", "\\")).c_str())
#define ccc_copy(_name_, _name_copy_)system(("copy " + cc::replace(((_name_) + " " + (_name_copy_)), "/", "\\")).c_str())

// #undef min
// #undef max
// static const int s_countInv = 100;
// static const int s_writeTabLen = 8;
// static const char* s_writeTab = "        ";
static const std::string s_unpack = ".unpack/";
static const std::string s_desktop = "C:/Users/luq/Desktop/";


class cBox : public cNode {
public:
	~cBox();
	CREATE_FUNC(cBox)

protected:
	virtual bool init();

public:
	void setColor(const s565& color);
	void setColor(uchar r, uchar g, uchar b);

protected:
	virtual void draw(cCanvas* canvas, const uint32_t& flags);

	s565 _color;
};